{extend name="layout/main-block" /}
{block name="sub-wrapper"}
<!--内容容器-->
<section id="sub-wrapper" class="full-screen page-feedback">
    <div id="sub-content">
        <div id="sub-header">
            <div class="sub-title"><h3><i class="fa fa-tasks"></i>运营--意见反馈</h3></div>
            <div class="sub-tools">
                <div id="searchTool">
                    <form class="form-inline" >
                        <input size="30" class="form-control" id="phname" placeholder="请输入关联用户进行检索" />
                        <a class="btn btn-primary" id="searchname"><i class="fa fa-search"></i>搜索</a>
                        <a class="btn btn-info" id="delSearch"><i class="fa fa-search"></i>清空搜索</a>
                    </form>
                </div>
            </div>
        </div>

        <div class="table-responsive data-table col-md-4">
            <table class="table table-striped table-bordered table-hover">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>关联用户</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                {volist name="feedback" id="v" empty="$empty" }
                <tr>
                    <td>{$v.uid}</td>
                    <td>{$v.username}</td>
                    <td>
                        <ul class="record-tool">
                            <!--{--note---mpty name="--$--v.reply_content"--}
                            <li><a class="btn btn-info btn-sm" disabled="disabled">已回复</a></li>
                            {--el--se/}-->
                            <li><a class="btn btn-info btn-sm viewRecord" data-name="{$v.user_id}">查看</a></li>
                            <li><a class="btn btn-success btn-sm replyRecord" data-name="{$v.user_id}">回复</a></li>
                            <!--{--/note---mpty}-->
                        </ul>
                    </td>
                </tr>
                {/volist}
                </tbody>
                <tfoot>
                <tr>
                    <td colspan="1" class="">
                        {$page}
                    </td>
                    <td colspan="1" class="text-center">
                        <div class="table-summary">
                            <div class="input-group">
                                <div class="input-group-addon">到第</div>
                                <input type="text" class="form-control" id="goto" placeholder="" style="width:40px;">
                                <div class="input-group-addon">页</div>
                                <span class="input-group-btn">
                                    <a class="btn btn-primary" data-currentPage="{$currentPage}" data-lastPage="{$lastPage}" id="gotoPage"><i class="fa fa-arrow-right"></i>确定</a>
                                </span>
                            </div>
                        </div>
                    </td>
                    <td colspan="1" class="text-center">
                        共<span id="total-record" class="text-success fa-2x"> {$count} </span>条记录
                    </td>
                </tr>
                </tfoot>
            </table>
        </div>

        <div class="table-responsive data-table col-md-8" id="viewRecord" style="height: 650px">
            <table class="table table-striped table-bordered table-hover"  >
                <thead>
                <tr>
                    <th>反馈内容/回复内容</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>"点击左侧按钮查看相应内容"</td>
                </tr>
                </tbody>
                <tfoot>
                </tfoot>
            </table>
        </div>

        <!--<div class="table-responsive data-table" style="margin-top: 40%">
            <table class="table table-striped table-bordered table-hover">

            </table>
        </div>-->
    </div>
</section>
{/block}

{block name="replyRecord"}

<!--编辑工具-->
<div id="replyRecord" class="modal fade" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">ID:<span id="recordId"></span></h4>
            </div>
            <div class="modal-body">
                <div class="col-xs-12">
                    <form class="form-horizontal" name="editForm">
                        <div class="form-group">
                            <label for="content">回复内容</label>
                            <textarea class="form-control" id="content" name="content" style="width:100%;height: 260px;resize:none" >
                            </textarea>
                        </div>
                    </form>
                </div>
                <div class="clearfix"></div>
            </div>
            <div class="modal-footer">
                <a class="btn btn-warning" data-dismiss="modal"><i class="fa fa-times"></i>关闭</a>
            </div>
        </div>
    </div>
</div>
<!--编辑工具-->
{/block}




